package com.genius.reservation.car.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.genius.reservation.driver.entity.DriverInformation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 车辆信息表
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
@TableName("car_information")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CarInformation对象", description = "车辆信息表")
public class CarInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("车辆编号")
    private String carNumber;

    private String carCode;

    @ApiModelProperty("车辆照片")
    private String carPic;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty("司机编号")
    @TableField(value = "driver_number")
    private String driverNumber;

    @TableField(exist = false)
    private DriverInformation driver;
    @ApiModelProperty("车辆类型")
    @TableField(value = "car_type")
    private String carType;
    @ApiModelProperty("车辆长度")
    @TableField(value = "car_length")
    private String carLength;
    @ApiModelProperty("车辆宽度")
    @TableField(value = "car_width")
    private String carWidth;
    @ApiModelProperty("车辆高度")
    @TableField(value = "car_height")
    private String carHeight;

}
